﻿@using IMall.Web.Models
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title - 购物天堂，就在爱商城</title>
    <link href="~/Content/Site.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <link href="~/Content/build.css" rel="stylesheet" />
    <script src="~/Scripts/modernizr-2.6.2.js"></script>
    @RenderSection("style", false)
</head>
<body>
    <div class="navbar navbar-inverse navbar-fixed-top" >
        <div class="container" >
            <div class="navbar-header" >
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                @Html.ActionLink("爱商城", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                    <li>
                        <a href="~/Home/List?keyword=男装">男装</a>
                    </li>
                    <li>
                        <a href="~/Home/List?keyword=女装">女装</a>
                    </li>
                    <li>
                        <a href="~/Home/List?keyword=玩具">玩具</a>
                    </li>
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    @if (Session["User"] != null)
                    {
                        <li>
                            <a href="~/Home/History">历史订单</a>
                        </li>
                        <li> <a href="#">@((Session["User"] as User).Name)</a></li>
                    }
                    else
                    {
                        <li>
                            <a id="modal-698863" href="#modal-container-698863" role="button" class="btn" data-toggle="modal">登陆</a>
                        </li>
                    }
                </ul>
            </div>
        </div>
    </div>

    <div class="container body-content">
        <div style="margin:30px;">
            <!-- 搜索栏 -->
            <div class="form-inline" style="width:600px; margin:0 auto">
                <input type="text" class="form-control" style="width:400px" />
                <button class="btn btn-success">
                    <span class="glyphicon glyphicon-search"></span> 搜索
                </button>
            </div>
        </div>
        <hr />
        @RenderBody()

        <div class="modal fade" id="modal-container-698863" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                        <h4 class="modal-title" id="myModalLabel">
                            登陆
                        </h4>
                    </div>
                    <div class="modal-body">
                        <form action="/Home/Login" method="post">
                            <input id="Name" name="Name" class="form-control" type="text" />
                            <input id="Password" name="Password" class="form-control" type="password" style="margin-top:20px;"/>
                            <button class="btn btn-success form-control" style="margin-top:20px;">登陆</button>
                        </form>
                    </div>
                </div>

            </div>

        </div>
        <hr />
        <footer>
            <p>&copy; @DateTime.Now.Year - 爱购物，爱商城</p>
        </footer>
    </div>

    <script src="~/Scripts/jquery-1.10.2.min.js"></script>
    <script src="~/Scripts/bootstrap.min.js"></script>
    @RenderSection("script", false)
</body>
</html>